import React, { Component } from 'react'
import './index.scss'
export default class Navtaber extends Component {
	state = {
		title: '',
	}
    leftGo = () => {
        window.history.back(-1)
    }
	render() {
		const { title } = this.props
		return (
			// <div className='housepage'>
				// {/* 头部导航 */}
				<div className='nav'>
					{/* 左侧图标 */}
					<div className='lefticon' onClick={this.leftGo}>
						<span className={['iconfont icon-back']}></span>
					</div>
					{/* 中间内容 */}
					<span className='centertitle'>{title}</span>
					{/* 右侧内容 */}
					<div className='righticon'>分享</div>
				</div>
			// {/* </div> */}
		)
	}
}
